const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  avatar: state => state.user.userInfo.staffPhoto
  // getters中定义是是计算属性, 这些数据是基于state中的数据派生出的状态
}
export default getters
